<html>
<head>
	<title>Tests for JU.validate</title>
	
	<script type="text/javascript" src="jsunit/app/jsUnitCore.js"></script>
	<script type="text/javascript" src="../src/janutils.js"></script>
	<script type="text/javascript" src="../src/functions.js"></script>
	
	<script type="text/javascript">
	
	//--------------------------------------------------------------------------
	// Tests with correct parameters
	//--------------------------------------------------------------------------
	
	/**
	 * Tests the asMethod() function
	 */
	function testAsMethod() {
		var hello = function (str) {
			return 'Hello: ' + str + '!!!';
		};
		
		String.prototype.hello = JU.functions.asMethod(hello);
		
		assertEquals('Hello: JanUtils!!!', 'JanUtils'.hello());
	}
	
	</script>
</head>
<body>
</body>
</html>
